package com.atguigu.springcloud.alibaba.service;

import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: shikong
 * @Date: 2020/8/13 23:36
 */

@FeignClient(value = "seata-storage-service")
public interface StorageService {

    @PostMapping(value = "/storage/update")
    public CommonResult storageUpdate(@RequestParam(value = "productId") Long productId,@RequestParam(value = "count") Integer count);

}
